<template>
	<div class="box">
    <el-date-picker style="width:100%" :type="type === 'dateTime' ? 'datetime' : 'date'" v-bind="$attrs">
    </el-date-picker>
	</div>
</template>
<script lang="ts">
import { Component, Vue, Prop, Inject, Provide } from 'vue-property-decorator';
@Component({
  name: 'customPicker',
  components: {}
})
export default class extends Vue {
  @Prop({ default: () => ({}) }) public type!: any;
}
</script>
